﻿<?php
class User {
//User class
    public $id;
    public $userName;
    public $fName;
    public $lName;
    public $karma;
    
    public function __construct($data = null) {
    
        if (is_array($data)) {
            
            @$this->id = $data['id'];
            $this->userName = $data['userName'];
            $this->fName = $data['fName'];
            $this->lName = $data['lName'];
            @$this->karma = $data['karma'];
        }
    }
    
    public function isUser($id) {
        if($this->id == $id) return true;
        else return false;
    }
    
}

?>